# Contributor: Elizabeth Jennifer Myers <elizabeth@sporksirc.net>
# Maintainer: psykose <alice@ayaya.dev>
pkgname=py3-eventlet
pkgver=0.33.1
pkgrel=0
pkgdesc="Python library for seamless coroutine-based concurrency"
url="https://eventlet.net/"
arch="noarch"
license="MIT"
depends="
	py3-dnspython
	py3-greenlet
	py3-httplib2
	py3-openssl
	py3-psycopg2
	py3-six
	python3
	"
makedepends="py3-setuptools"
checkdepends="py3-tox py3-nose"
source="https://files.pythonhosted.org/packages/source/e/eventlet/eventlet-$pkgver.tar.gz
	skip-broken-tests.patch
	"
builddir="$srcdir"/eventlet-$pkgver

# secfixes:
#   0.32.0-r0:
#     - CVE-2021-21419

build() {
	python3 setup.py build
}

check() {
	nosetests -sv tests
}

package() {
	python3 setup.py install --root "$pkgdir"
}

sha512sums="
c8ece6a26039631b13ecc188f480f348a42551267fb6135551899dec7a23d0cfd032c14728e114901e4d256bf580203bfbdb1795881abdd71e49a53f8ed58964  eventlet-0.33.1.tar.gz
c01f0d89c9d681f30b68a78c9a980788637d42d450e89fab7f1ac83313e9f07fdcc94ca6fab0ae613445e8147b1e9a9389ab5b61cb0930ab643786ec61193681  skip-broken-tests.patch
"
